package org.zakariya.stickyheadersapp;

import com.zhy.http.library.OkHttpUtils;
import ohos.aafwk.ability.AbilityPackage;
import okhttp3.OkHttpClient;

import java.util.concurrent.TimeUnit;
/**
 * MyApplication
 *
 * @since 2021-08-20
 */
public class MyApplication extends AbilityPackage {
    @Override
    public void onInitialize() {
        super.onInitialize();

        OkHttpClient okHttpClient = new OkHttpClient.Builder()
                .connectTimeout(10000L, TimeUnit.MILLISECONDS)
                .readTimeout(10000L, TimeUnit.MILLISECONDS)
                //其他配置
                .build();
        OkHttpUtils.initClient(okHttpClient);
    }
}
